/*
 * @Descripttion: 会员等级列表配置
 * @version: 电子名片2.0
 * @Author: 冯健
 * @Date: 2020-11-24 10:06:57
 * @LastEditors: 冯健
 * @LastEditTime: 2020-12-05 11:04:32
 */
export const listHedar = [
  { label: '会员等级编号', prop: 'levelId' },
  { label: '会员等级名称', prop: 'levelName' },
  { label: '状态', prop: 'levelStatus', isTemplate: true },
  { label: '修改人', prop: 'modifierName' },
  { label: '修改时间', prop: 'gmtModified' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]

const stutas = [
  { value: '0', title: '未启用' },
  { value: '1', title: '已启用' },
  { value: '2', title: '已停用' }
]
export const searchs = [
  { type: 'input', key: 'keyword', value: '', placeholder: '会员等级' },
  { type: 'select', key: 'state', value: '', selectList: stutas, placeholder: '状态' }
]

export const editList = [
  { type: 'input', key: 'levelName', label: '会员等级名称: ', placeholder: '请输入' },
  { type: 'slot', name: 'slot1', key: 'slot1', relation: 'a', label: '好友上限: ', placeholder: '请输入人数' },
  { type: 'slot', name: 'slot2', key: 'slot2', relation: 'b', label: '每日添加好友: ', placeholder: '请输入人数' }
]

export const rules = {
  levelName: { required: true, message: '请输入会员等级名称' },
  show: { required: true, message: '请选择会员标识' }
}
